package com.edooteach.tencent.rao;

import java.util.Map;
import com.demo2do.core.entity.result.HttpResult;
import com.demo2do.core.http.HttpMethod;
import com.demo2do.core.http.annotation.Rao;
import com.demo2do.core.http.annotation.RaoBody;
import com.demo2do.core.http.annotation.RaoConfig;
import com.demo2do.core.http.annotation.RaoMapping;
import com.demo2do.core.http.annotation.RaoParam;

/**
 * 
 * @author mohanlan
 *
 */
@Rao
public interface CorpMessageRao {
    
    /**
     * 
     * @param accessToken
     * @param params
     * @return
     */
    @RaoConfig(code = "errcode", message = "errmsg", parse = true)
    @RaoMapping(value = "https://qyapi.weixin.qq.com/cgi-bin/message/send", method = HttpMethod.POST)
    public HttpResult send(@RaoParam("access_token") String accessToken, @RaoBody Map<String, Object> params);
}
